package com.tssm.action.usercenter;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.tssm.cache.memcached.TsSessionUtil;
import com.tssm.pojo.SarcSupplier;

@Controller("initAction")
@Scope("prototype")
public class InitAction extends ActionSupport {

	private static final long serialVersionUID = -9183098387308798504L;
	//供应商
	private SarcSupplier ssup;
	
	public String left() throws Exception{
		HttpServletRequest request = ServletActionContext.getRequest();
		ssup = TsSessionUtil.getTsUser(request);		
		return "left1";
	}

	public SarcSupplier getSsup() {
		return ssup;
	}

	public void setSsup(SarcSupplier ssup) {
		this.ssup = ssup;
	}
	
}
